<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>测试</title>
</head>
<body>
    欢迎光临
    <shiro:principal property="username"></shiro:principal>
</body>
</html>